package com.liangtian.mdm.system.code.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 编码配置实体类
 *
 * @author byr
 */
@Table(name = "AM_CODE_CONFIG")
public class Code extends BaseModel {

    /**
     *
     */
    private static final long serialVersionUID = 2013015731425533097L;
    @SequenceGenerator(name = "Any", sequenceName = "AM_CODE_CONFIG_SEQ")
    @Id
    @Column(name = "ID")
    private String id;  //主键

    @Column(name = "CODE_TYPE")
    private String codeType;  //编码类型

    @Column(name = "VALUE_LENGTH")
    private String valueLength;  //编码值长度

    @Column(name = "VALUE_TYPE")
    private String valueType;  //编码值类型

    @Column(name = "CODE_VALUE")
    private String codeValue;  //编码值

    @Column(name = "NAME_VALUE")
    private String nameValue;  //编码值名称

    @Column(name = "START_VALUE")
    private String startValue;  //流水码起始值

    @Column(name = "INCREMENT_VALUE")
    private String incrementValue;  //流水码增量

    @Column(name = "NEW_VALUE")
    private String newValue;  //流水码最新值

    @Column(name = "ATTR_ID")
    private String attrId;  //属性ID

    @Column(name = "SURVEY_TYPE")
    private String surveyType;  //模型ID

    @Column(name = "CONFIG_CODE_FIELD")
    private String configCodeField;  //专门为有属性来源表的属性设置的编码字段

    @Column(name = "CONFIG_CODE_NAME")
    private String configCodeName;  //专门为有属性来源表的属性设置的编码字段的名称

    private String modelName;

    private String attrName;


    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getNameValue() {
        return nameValue;
    }

    public void setNameValue(String nameValue) {
        this.nameValue = nameValue;
    }

    public String getConfigCodeName() {
        return configCodeName;
    }

    public void setConfigCodeName(String configCodeName) {
        this.configCodeName = configCodeName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

    public String getValueLength() {
        return valueLength;
    }

    public void setValueLength(String valueLength) {
        this.valueLength = valueLength;
    }

    public String getValueType() {
        return valueType;
    }

    public void setValueType(String valueType) {
        this.valueType = valueType;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public String getStartValue() {
        return startValue;
    }

    public void setStartValue(String startValue) {
        this.startValue = startValue;
    }

    public String getIncrementValue() {
        return incrementValue;
    }

    public void setIncrementValue(String incrementValue) {
        this.incrementValue = incrementValue;
    }

    public String getNewValue() {
        return newValue;
    }

    public void setNewValue(String newValue) {
        this.newValue = newValue;
    }

    public String getAttrId() {
        return attrId;
    }

    public void setAttrId(String attrId) {
        this.attrId = attrId;
    }

    public String getSurveyType() {
        return surveyType;
    }

    public void setSurveyType(String surveyType) {
        this.surveyType = surveyType;
    }

    public String getConfigCodeField() {
        return configCodeField;
    }

    public void setConfigCodeField(String configCodeField) {
        this.configCodeField = configCodeField;
    }

}
